package com.ruoyi.system.controller;

import com.ruoyi.common.core.web.domain.AjaxResult;
import com.ruoyi.system.service.IAmapService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 *
 * @ClassName AmapController
 * @Description: TODO(这里用一句话描述这个类的作用)
 * @Author luqian
 * @Date 2024/6/27 2:10 PM
 * @Copyright 八维
 * @Version V1.0.0
 */
@RestController
@RequestMapping("/amap")
public class AmapController {

    @Autowired
    private IAmapService amapService;

    @GetMapping("/getLocationByIp")
    public AjaxResult getLocationByIp(String ip) {


        return amapService.getLocationByIp(ip);
    }
}
